import http from '@http';
export function fetchGetSaltInfo() {
  return http.get('/salt');
}

export function fetchLogin(params = {}) {
  return http.post('/login', params);
}

export function fetchLoginout() {
  return http.post('/login-out');
}

export function fetchRefreshToken(refreshToken) {
  return http.get('/token/refresh', {
    headers: { 'Refresh-Token': refreshToken },
  });
}

export function fetchExportCheck(taskId) {
  return http.get(`/export/check/${taskId}`);
}
